import request from '@/utils/request'

export function getMyPaperList(data) {
  return request({
    url: '/porproject_registration/UserGetRelatePRegist',
    method: 'post',
    data
  })
}

export function thesis_add(data) {
  return request({
    url: '/porproject_registration/AddPRegist',
    method: 'post',
    data
  })
}

export function thesis_add2(data) {
  return request({
    url: '/porproject_registration/UpdatePRegist',
    method: 'post',
    data
  })
}

export function thesis_delete(ID) {
  return request({
    url: '/porproject_registration/DeletePRegist',
    method: 'get',
    params: { ID }
  })
}

export function thesis_commit(ID) {
  return request({
    url: '/porproject_registration/CommitPRegist',
    method: 'get',
    params: { ID }
  })
}

export function get_thesis_author(tranprojectID) {
  return request({
    url: '/tranproject_registration/GetHxProjectMembers',
    method: 'get',
    params: { tranprojectID }
  })
}

export function thesis_author_add(data) {
  return request({
    url: '/porproject_registration/AddpRegistPeople',
    method: 'post',
    data
  })
}

export function thesis_author_delete(data) {
  return request({
    url: '/porproject_registration/DeletepRegistPeople',
    method: 'post',
    data
  })
}

export function get_thesis_xiaoji(data) {
  return request({
    url: '/porproject_registration/SchoolUserGetPRegist',
    method: 'post',
    data
  })
}
// 申请审核
export function thesis_pass_xiaoji(ID) {
  return request({
    url: '/porproject_registration/SchoolCheckPRegistPass',
    method: 'get',
    params: { ID }
  })
}

export function thesis_back_xiaoji(data) {
  return request({
    url: '/porproject_registration/SchoolCheckPRegistBack',
    method: 'post',
    data
  })
}
